FUNC : A Functional Language : : : and more ! Markus

نویسنده

  • Markus Mohnen
چکیده

FUNC is a functional language with the ability to incorporate C++ components. Unlikèmostly-functional' languages, like Scheme or SML, FUNC does not provide an assignment statement or statement sequences. Our approach to the integration of the functional and imperative paradigms is the concept of mixed-language programming on a module level. 1 Introduction Although the practical advantages of functional languages are widely approved in the academic community Hug90, Llo94], the acceptance in software industry is small. A major obstacle for the introduction of functional languages like Haskell or Miranda is that no possibility is provided to reuse existing (imperative) programs. Therefore, functional languages can only be used for the development of new software, whereas maintenance or extension of existing systems can not be done functionally. FUNC is a functional language with the ability to incorporate C++ components. Functions and algebraic data types deened in modules programmed in FUNC can use and can be used directly by procedures and classes in C++ modules. There is no need for special inter-language interfaces in order to exchange data between the two worlds. Data structures which were generated using constructors can be used by imperative procedures, including suspended computations due to lazy evaluation. Even higher-order functions like map or filter can be incorporated by imperative components. We implement our language by compiling FUNC programs to C++. Each functional type and each function is mapped to an equivalent imperative class, or imperative procedure, respectively. Hence, in contrast to implementations of functional languages based on abstract machines FH88, PL92, Pey93], we do not need an additional run-time environment for maintaining tasks like data structure representation , higher-order features, and simulation of lazy evaluation. The major advantage of this approach is the possibility to use the same data structures for the functional and

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Functions, Frames, and Interactions { Advocating Rst Class Modules {

Combining modules as rst class data structures with explicit input/output-operations for arbitrary expressions in a purely functional programming language brings the exibility of integrated programming environments under control of the functional language. Compared to conventional module systems, the proposed solution provides enhanced func-tionality in a simpler framework, using the functional...

متن کامل

Investigating Discourse Socialisation Progress of an English as a Second Language Learner Using Systematic Functional Linguistic Approach

This study was framed on the theory of Language Socialisation and a Systematic Functional Linguistic (SFL) approach. The aim of the study was to analyse the oral presentation discourse produced by an elemen- tary Iranian English as Second Language (ESL) postgraduate student in an American university four times (September/December, 2015 and March/September, 2016) over one year. The data were col...

متن کامل

Level of Grammatical Proficiency and Acquisition of Functional Projections: The case of Iranian learners of English language

Unlike Lexical Projections, Functional Projections (Extended Projections) are more of an ‘abstract’ in nature. Therefore, Functional Projections seem to be acquired later than Lexical Projections by the L2 learners. The present study investigates Iranian L2 learners’ acquisition of English Extended Projections taking into account their level of grammatical proficiency. Specifically, the aim is ...

متن کامل

BD-Func: a streamlined algorithm for predicting activation and inhibition of pathways

BD-Func (BiDirectional FUNCtional enrichment) is an algorithm that calculates functional enrichment by comparing lists of pre-defined genes that are known to be activated versus inhibited in a pathway or by a regulatory molecule. This paper shows that BD-Func can correctly predict cell line alternations and patient characteristics with accuracy comparable to popular algorithms, with a significa...

متن کامل

Subcortical Vascular Cognitive Impairment staged through cdr's functional subsum (cdr-func): Preliminary results from an outpatient sample☆☆☆

Background Staging vascular cognitive impairment (VCI) might be useful for sample selection in clinical trials and for guiding clinical decision-making. Clinical dementia rating (CDR) has been applied for staging cognitive impairments of different etiologies, but it may underestimate severity of non-Alzheimer's disease cognitive deficits. Methods Out of a total of 147 elderly subjects, 23 (me...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007